<%@ page language="java" pageEncoding="UTF-8"%> 
<%@ page import="com.king.cms.common.*,com.king.cms.orm.MenuTree" %>
<%@ include file="/hotel/include/css_tree.jsp"%><%-- /*包含css样式表*/ --%>
 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    
    <title>My JSP 'stepTree.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
 
 <link href="<%=basePath %>hotel/tree/main/dtree.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=basePath %>hotel/tree/main/dtree.js"></script> 

<script type="text/javascript" src="<%=basePath %>js/check.js"></script>
  </head>
  <body   >
    <div class="dtree" style="height:585px;border:solid 0px black;width:190px;overflow:auto"> 
	<script type="text/javascript">
		<!--

		tree = new dTree('tree');
<% 
Set list=BaseData.getInstance().getMenuList();
System.out.println(list);
Iterator iterator = list.iterator();
while(iterator.hasNext())
{   
	MenuTree menuTree=(MenuTree)iterator.next(); 
	if(SessionUtil.getIsFun(request,new Integer(menuTree.getTreeId())) || menuTree.getTreeId()==0 )
	{
	    if(menuTree.getTreeId() == 27){
     %>
	tree.add(<%=menuTree.getTreeId() %>,<%=menuTree.getParTreeId() %>,'<%=menuTree.getTreeName() %>','<%if(! menuTree.getUrl().equals(""))out.print(basePath+menuTree.getUrl()+"?treeId="+menuTree.getTreeId()); %>','','blank');
	<%}else{%>
     tree.add(<%=menuTree.getTreeId() %>,<%=menuTree.getParTreeId() %>,'<%=menuTree.getTreeName() %>','<%if(! menuTree.getUrl().equals(""))out.print(basePath+menuTree.getUrl()+"&treeId="+menuTree.getTreeId()); %>','','main_mainFrame');

<%}}}%>	 
		document.write(tree);

		//-->
	</script>

</div> 
  </body>
</html>
